package com.project.bean;

import java.time.LocalDate;

/**
 * 日志实体类
 */
public class LogBean {
    //日志ID
    private int logID;
    //记录日志时间
    private LocalDate date = LocalDate.now();
    //日志内容
    private String logInfo;

    public LogBean() {
    }

    public LogBean( String logInfo) {
        this.logInfo = logInfo;
    }

    public int getLogID() {
        return logID;
    }

    public void setLogID(int logID) {
        this.logID = logID;
    }

    public LocalDate getDate() {
        return date;
    }

    public void setDate(LocalDate date) {
        this.date = date;
    }

    public String getLogInfo() {
        return logInfo;
    }

    public void setLogInfo(String logInfo) {
        this.logInfo = logInfo;
    }

    @Override
    public String toString() {
        return "LogBean{" +
                "logID=" + logID +
                ", date=" + date +
                ", logInfo='" + logInfo + '\'' +
                '}'+"\n";
    }
}
